package com.ym.core.es.annotation;

import com.ym.core.es.domain.bo.HeightWordTags;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 需要高亮显示搜索结果的字段
 *
 * @author 625
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface HeightWord {

    HeightWordTags tags() default HeightWordTags.DEFAULT;

    int highlightNum() default 30;

}
